package com.longxi.tianjintianbao.ui.activity.oa;

import android.content.Intent;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.oa.CostApplyDetailAtPresenter;
import com.longxi.tianjintianbao.ui.view.oa.ICostApplyDetailAtView;

import butterknife.BindView;

public class CostApplyDetailActivity extends BaseActivity<ICostApplyDetailAtView, CostApplyDetailAtPresenter> implements ICostApplyDetailAtView {
    @BindView(R.id.etProjectName)
    EditText mEtProjectName;
    @BindView(R.id.etUse)
    EditText mEtUse;
    @BindView(R.id.tvLoanType)
    TextView mTvLoanType;

    @BindView(R.id.etUpperAmount)
    EditText mEtUpperAmount;
    @BindView(R.id.tvSwitch)
    TextView mTvSwitch;

    @BindView(R.id.etLowerAmount)
    EditText mEtLowerAmount;
    @BindView(R.id.etSupplier)
    EditText mEtSupplier;
    @BindView(R.id.etAccounts)
    EditText mEtAccounts;
    @BindView(R.id.etOpeningBank)
    EditText mEtOpeningBank;
    @BindView(R.id.etExplain)
    EditText mEtExplain;

    @BindView(R.id.llBottomBtn)
    LinearLayout mLlBottomBtn;
    @BindView(R.id.btnReject)
    Button mBtnReject;
    @BindView(R.id.btnThrough)
    Button mBtnThrough;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_cost_apply_detail;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
        mPresenter.getCostApply();

    }

    @Override
    public void initListener() {
        super.initListener();
        mBtnReject.setOnClickListener(v -> mPresenter.showPersonnel("1"));
        mBtnThrough.setOnClickListener(v -> mPresenter.showPersonnel("0"));

    }

    @Override
    protected CostApplyDetailAtPresenter createPresenter() {
        return new CostApplyDetailAtPresenter(this);
    }

    @Override
    public EditText getEtProjectName() {
        return mEtProjectName;
    }

    @Override
    public EditText getEtUse() {
        return mEtUse;
    }

    @Override
    public TextView getTvLoanType() {
        return mTvLoanType;
    }

    @Override
    public EditText getEtUpperAmount() {
        return mEtUpperAmount;
    }

    @Override
    public EditText getEtLowerAmount() {
        return mEtLowerAmount;
    }

    @Override
    public EditText getEtSupplier() {
        return mEtSupplier;
    }

    @Override
    public EditText getEtAccounts() {
        return mEtAccounts;
    }

    @Override
    public EditText getEtOpeningBank() {
        return mEtOpeningBank;
    }

    @Override
    public EditText getEtExplain() {
        return mEtExplain;
    }

    @Override
    public LinearLayout getLlBottomBtn() {
        return mLlBottomBtn;
    }

    @Override
    public Button getBtnReject() {
        return mBtnReject;
    }

    @Override
    public Button getBtnThrough() {
        return mBtnThrough;
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
    }

}


